﻿using SCM.Common;
using SqlSugar;
using System;

namespace SCM.Model.DBEntity
{
    /// <summary>
    /// 零件表
    /// </summary>
    [SugarTable("T_Material_Parts")]
    public class T_Material_Parts:EntityBase
    {
        /// <summary>
        /// 零件ID
        /// </summary>
        public string ID { get; set; }

        /// <summary>
        /// 所属企业ID
        /// </summary>
        public string CompanyID { get; set; }

        /// <summary>
        /// 零件编码
        /// </summary>
        public string PartCode { get; set; }

        /// <summary>
        /// 零件名称
        /// </summary>
        public string PartName { get; set; }

        /// <summary>
        /// 供应商ID
        /// </summary>
        public string SupplierID { get; set; }

        /// <summary>
        /// 供应商名称
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string SupplierName { get; set; }

        /// <summary>
        /// RoHS测试报告ID
        /// </summary>
        public string RoHSTestReportID { get; set; }

        /// <summary>
        /// MCD ID
        /// </summary>
        public string MCDID { get; set; }

        /// <summary>
        /// 绿色认证状态
        /// </summary>
        public GreenStatusEnum GreenStatus { get; set; }

        /// <summary>
        /// 绿色认证状态
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string GreenStatusStr { get { return EnumHelper.GetDescription(GreenStatus); }}
    }
}